<template>
	<view class="login-bt">
		<!-- <u-button shape="circle" :custom-style="loginStyle" hover-class="none" :ripple="true" @click="login">{{ text }}</u-button> -->
		<u-button shape="circle" :custom-style="getBtStyle('default')" hover-class="none" :hair-line="false" :ripple="true" @tap.stop="click($event)">{{ text }}</u-button>
	</view>
</template>

<script>
	export default {
		props: {
			text: {
				type: String,
				default: '登 录'
			}
		},
		data() {
			return {
			}
		},
		methods: {
			click(e) {
				this.$emit('click', e)
			},
			login() {
				// 模拟用户
				const user = {
					id: 1,
					nickname: 'SUN漂亮',
					mobilephone: 13488782648,
					avatar: '',
					access_token: '123123132'
				}
				this.$mRouter.redirectTo({ route: '/pages/mine/profile'})
			}
		}
	}
</script>

<style scoped>
	.login-bt {
		padding: 0 70rpx;
	}
</style>
